export const playAudioByIndex = (index: number) => {
  const audio = new Audio(`/voice/${index}.mp3`);
  audio.play().catch(error => {
    console.error('音频播放失败:', error);
  });
};
